package com.relife.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "sys_home_setting")
public class HomeSettingEntity extends BaseEntity {
	/**
	 * @author WU
	 * @date 2017年3月6日 上午10:43:44
	 */
	private static final long serialVersionUID = 6085769058695539885L;

	private String name;
	private String url;
	/** 类型：0:pc端，1：微信端 */
	private Integer type;
	private String style;
	private RoleEntity role;

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "URL")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "STYLE")
	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	/** 类型：0:pc端，1：微信端 */
	@Column(name = "TYPE")
	public Integer getType() {
		return type;
	}

	/** 类型：0:pc端，1：微信端 */
	public void setType(Integer type) {
		this.type = type;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ROLE_ID")
	public RoleEntity getRole() {
		return role;
	}

	public void setRole(RoleEntity role) {
		this.role = role;
	}

}
